package com.zhousb.deviceManager.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author JoinIn
 * @date 2023/8/30 11:24
 */

@Data
@Schema(name = "分页请求")
public class PageRequest<T> implements Serializable {

    @Serial
    private static final long serialVersionUID = 1136807863880241400L;

    @Schema(name = "current",title = "当前页", example = "1")
    private int current;

    @Schema(name = "size",title = "每页大小", example = "1")
    private int size;

    @Schema(name = "query",title = "请求参数")
    private T query;
}
